package com.xquant.pricing.pricingConfig.mapper;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ershuai.zhao
 */
@Repository
public interface TargetParamMapper {
    /**
     * queryTargetParam
     *
     * @param map
     * @return
     */
    List<Map> queryTargetParamCfgByPage(Map map);

    /**
     * insertTargetParamCfg
     *
     * @param map
     */
    void insertTargetParamCfg(Map map);

    /**
     * updateTargetParamCfg
     *
     * @param map
     */
    void updateTargetParamCfg(Map map);

    /**
     * deleteTargetParamCfg
     *
     * @param map
     */
    void deleteTargetParamCfg(Map map);

    void deleteTargetParamCfgById(Map map);
    
    List<Map> queryUnderlyingCfg(Map map);

    int queryUnderlyingCfgCountByCfgId(String cfgId);
}
